-- card: 3740 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 2721 -- name: DeleteMenu -- part 2 (button) -- low flags: 00 -- high flags: A003 -- rect: left=334 top=278 right=295 bottom=464 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Go See NewMenu ----- HyperTalk script ----- on mouseUp go to card id 3302 Find "closeStack" in field "Description" end mouseUp -- part contents for background part 20 ----- text ----- 4 -- part contents for background part 1 ----- text ----- XFCN -- part contents for background part 22 ----- text ----- DeleteMenu(menuNumber) -- part contents for background part 13 ----- text ----- DeleteMenu is an XFCN that allows you to delete any menus you've added to HyperCard using the NewMenu XFCN. Failure to delete added menus could lead to severe problems in memory and crash HyperCard! The menu reference number you provide to to DeleteMenu should be the same number that was returned by NewMenu. Do NOT, hoevevr, call DeleteMenu to delete menus that you've already deleted! You need to balance the calls for each menu. Call NewMenu ONCE to create a menu (usually in either openStack, openBackground or openCard), and call DeleteMenu ONCE to delete it (in the matching closeStack, closeBackground, or closeCard). Repeat as neccessary. Rinse. For the best example of use see the sample script provided in NewMenu.